<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/5/31
 * Time: 15:08
 */

namespace app\admin\model;


class ShopType  extends  Base {

    /**获取商家类型
     * @return array|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function shopType(){
        return self::field('id,name')
            ->where(['status'=>1])->select();
    }
}